<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .anime-flip {
            width: 100px;
            height: 100px;
            animation: flip 1.5s 1 ease-in-out;
            background-color: red;
        }

        @keyframes flip {
            0% {
                transform: rotateY(0deg);
            }

            100% {
                transform: rotateY(360deg);
            }
        }

    </style>
</head>

<body>
    <div class="anime-flip">
        <div>

</body>

</html>